/**
 * 
 */
package com.wolfware.athsweb.service.impl;

import java.util.List;

import com.wolfware.athsweb.domain.User;
import com.wolfware.athsweb.manager.UserManager;
import com.wolfware.athsweb.service.BackOfficeService;

/**
 * @author ChristianStrzadala
 *
 */
public class BackOfficeServiceImpl implements BackOfficeService {

	private UserManager userManager;

	/**
	 * @param userManager the userManager to set
	 */
	public void setUserManager(final UserManager userManager) {
		this.userManager = userManager;
	}

	/**
	 * {@inheritDoc}
	 */
	public List<User> getRegisteredUsersList() {
		List<User> userList = userManager.getRegisteredUsers();
		return userList;
	}

	/**
	 * {@inheritDoc}
	 */
	public void registerUser(User user) {
		userManager.addUser(user);
		
	}

}
